package com.itheima.service.impl;

import com.itheima.domain.Departments;
import com.itheima.mapper.DepartmentsDao;
import com.itheima.service.DepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhengjd
 * @date 2020/3/24 20:01
 */
@Service
public class DepartmentsServiceImpl implements DepartmentsService {

    @Autowired
    DepartmentsDao departmentsDao;
    @Override
    public List<Departments> findAll() {
        List<Departments> departments = departmentsDao.findAll();
        return departments;
    }
}
